package com.test.action;

import com.mvc.action.Action;
import com.mvc.action.ActionForm;
import com.test.entity.Monkey;

public class MonkeyAction implements Action {

	@Override
	public String execute(ActionForm form) {
		Monkey monkey = (Monkey)form;
		if("wukong".equals(monkey.getName())) {
			return "success";
		}
		return "fail";
	}

}
